'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/api/init', controller.home.init);
  router.post('/api/like', controller.home.like);
  router.post('/api/dislike', controller.home.dislike);
  router.post('/api/remove', controller.home.remove);
  router.get('/api/next', controller.home.next);
  router.get('/api/ranks', controller.home.ranks);
};
